<?xml version='1.0' encoding='utf-8'?>
<%@page import="member.MemberVo"%>
<%@page import="java.util.Vector"%>
<%@page contentType="text/xml; charset=utf-8" %>
<!-- file name : list_xml.jsp -->
<jsp:useBean id="bean" class="member.Login" scope="page"/>
<jsp:setProperty property="*" name="bean"/>

<members>

<!-- 객체를 만드는 이유가 재활용성 때문이다.  -->
<%
Vector<MemberVo> v = bean.list();
for(int i=0; i<v.size(); i++){
	MemberVo vo = v.get(i);
	out.print("<member>");
	out.print("<mid>" + vo.getMemberid() + "</mid>");
	out.print("<pwd>" + vo.getPwd() + "</pwd>");
	out.print("</member>");
}
%>
</members>